package cn.itcast.tools;

import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.itcast.entity.ComboInfo;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

/**
 * 套餐tool calling
 * @author Shizhicong
 */
@Component // 注册为一个组件
public class ComboTools {

    @Tool(description = "根据用户需求推荐套餐信息")
    public ComboInfo getCombo(Integer index) {
        return ComboInfo.getAllCombos().get(index);
    }

}
